﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListReturnGoods.aspx.cs"
    Inherits="dzs.Web.Outstorage.ListReturnGoods" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link href="../css/myStyle.css" rel="stylesheet" />
    <link href="../style.css" type="text/css" rel="stylesheet" />
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/JsTools.js" type="text/javascript"></script>
    <script type="text/javascript">

        function OpenPop(val, w, h) {
            if (true == window.showModalDialog(val, window.self, "dialogwidth=" + w + ";dialogheight=" + h + ";" + " resizable:yes;")) {
                __doPostBack('btn_reload', 'btn_reload_Click');
            }

        }

        function OpenPopWin(val, w, h) {
            //window.showModalDialog(val,window.self,"dialogwidth="+w+";dialogheight="+h+";")

            window.open(val, 'newwindow', "height=" + h + ",width=" + w + ",toolbar=yes,scrollbars=yes");
        }

        function showQRC(id) {

            window.open('../PrintQCR.aspx?id=' + id + "&type=returnGoods", 'newwindow', 'height=600, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no')
        }
       
    </script>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table cellpadding="0" cellspacing="0" class="style1">
            <tr>
                <td style="height: 15px;">
                    <strong>退库清单列表</strong>
                </td>
            </tr>
            <tr>
                <td style="height: 15px;">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td style="height: 15px; text-align: left;">
                    项目名称：<asp:TextBox ID="txt_proid" runat="server"></asp:TextBox>
                    &nbsp;物料描述：<asp:TextBox ID="txt_material" runat="server"></asp:TextBox>
                    &nbsp;退库单号：<asp:TextBox ID="txt_returnNo" runat="server"></asp:TextBox>
                    <asp:Button ID="btn_sel" runat="server" Text="查询" class="inputbutton"  CssClass="btn" OnClick="btn_sel_Click" />
                </td>
            </tr>
            <tr>
                <td style="height: 15px; text-align: left;">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td style="height: 15px;">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderWidth="0px"
                        CellPadding="0" CellSpacing="1" CssClass="gv" GridLines="None" Width="100%" AllowPaging="True"
                        OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCommand="GridView1_RowCommand">
                        <Columns>
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbn_print" runat="server" CommandArgument='<%# Bind("returnNo") %>'
                                        ForeColor="Blue" CommandName="lbn_print">打印退库单</asp:LinkButton>
                                    <a href="javascript:showQRC(<%# Eval("returnGoodsId") %>)" style=" color:Blue">生成二维码 </a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="projectName" HeaderText="项目名称" />
                            <asp:BoundField DataField="proid" HeaderText="项目编号" />
                            <asp:BoundField DataField="material" HeaderText="物料描述" />
                            <asp:BoundField DataField="return_nums" HeaderText="退库数量" />
                            <asp:BoundField DataField="returnNo" HeaderText="退库单号" />
                            <asp:BoundField DataField="returnTime" HeaderText="退库时间" />
                        </Columns>
                        <PagerStyle CssClass="mypager" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td style="height: 15px;">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td style="height: 15px;">
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>